//
//  HomeTableViewCell.m
//  futureLive
//
//  Created by zhoubiwen on 15/11/17.
//  Copyright © 2015年 ZHOU_LI_SUN. All rights reserved.
//

#import "HomeOneImageCell.h"
#import "HomeModel.h"
#import <UIImageView+WebCache.h>
@interface HomeOneImageCell ()

@property (strong, nonatomic) IBOutlet UIImageView *oneImageView;

//@property (strong, nonatomic) IBOutlet UIImageView *oneImageView;


@end


@implementation HomeOneImageCell




- (void)setHomeModel:(HomeModel *)homeModel {
    
    if (_homeModel != homeModel) {
        _homeModel = nil;
        _homeModel = homeModel;
        [self layoutModel];
    }
}

- (void)layoutModel {
    
    HomeImageModel *model = self.homeModel.list.firstObject;
    [self.oneImageView sd_setImageWithURL:[NSURL URLWithString:model.img]];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
